From: Alexandre Emsenhuber Date: Tue, 20 Mar 2012 10:07:51 +0000 (+0000) Subject: * (bug 34735) Updated compressOld.php documentation to mention the different usages... X-Git-Tag: 1.31.0-rc.0~24178 X-Git-Url: http://git.cyclocoop.org/%7D%7Cconcat%7B?a=commitdiff_plain;h=3462810bbca9a18bf5d66da110dde0d5a6f5d44a;p=lhc%2Fweb%2Fwiklou.git * (bug 34735) Updated compressOld.php documentation to mention the different usages of -s and -n parameters depending on compression type Based on patch by christian@quelltextlich.at - http://bug-attachment.wikimedia.org/attachment.cgi?id=10105 --- diff --git a/RELEASE-NOTES-1.20 b/RELEASE-NOTES-1.20 index cdc3dccb59..63e7130b3f 100644 --- a/RELEASE-NOTES-1.20 +++ b/RELEASE-NOTES-1.20 @@ -47,6 +47,8 @@ production. * (bug 15816) Add a switch for SETting the search_path (Postgres) * (bug 34521) Returning to the previous page after logging in loses any array- valued parameters in the query string +* (bug 34735) Updated compressOld.php documentation to mention the different + usages of -s and -n parameters depending on compression type === API changes in 1.20 === * (bug 34316) Add ability to retrieve maximum upload size from MediaWiki API. diff --git a/maintenance/storage/compressOld.php b/maintenance/storage/compressOld.php index d755d582dc..5064fe7f15 100644 --- a/maintenance/storage/compressOld.php +++ b/maintenance/storage/compressOld.php @@ -17,8 +17,9 @@ * -c maximum number of revisions in a concat chunk * -b earliest date to check for uncompressed revisions * -e latest revision date to compress - * -s the old_id to start from - * -n the old_id to stop at + * -s the id to start from (referring to the text table for + * type gzip, and to the page table for type concat) + * -n the page_id to stop at (only when using concat compression type) * --extdb store specified revisions in an external cluster (untested) * * This program is free software; you can redistribute it and/or modify @@ -56,9 +57,9 @@ class CompressOld extends Maintenance { $this->addOption( 'chunksize', 'Maximum number of revisions in a concat chunk', false, true, 'c' ); $this->addOption( 'begin-date', 'Earliest date to check for uncompressed revisions', false, true, 'b' ); $this->addOption( 'end-date', 'Latest revision date to compress', false, true, 'e' ); - $this->addOption( 'startid', 'The old_id to start from', false, true, 's' ); + $this->addOption( 'startid', 'The id to start from (gzip -> text table, concat -> page table)', false, true, 's' ); $this->addOption( 'extdb', 'Store specified revisions in an external cluster (untested)', false, true ); - $this->addOption( 'endid', 'Stop at this old_id', false, true, 'n' ); + $this->addOption( 'endid', 'The page_id to stop at (only when using concat compression type)', false, true, 'n' ); } public function execute() {